import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

//路由懒加载
const routes = [{
		path: '/',
		redirect: '/LoginPage'
	},
	{
		path: '/HomePage',
		component: () => import('../views/HomePage.vue')
	},
	{
		path: '/CreationPage',
		component: () => import('../views/CreationPage.vue')
	},
	{
		path: '/LoginPage',
		component: () => import('../views/LoginPage.vue')
	},
	{
		path: '/ConversationPage',
		component: () => import('../views/ConversationPage.vue')
	},
	{
		path: '/UpdateCharacter',
		component: () => import('../views//UpdateCharacter.vue')
	}
];

const router = new VueRouter({
	routes
})

export default router